<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>HH_UNINITIALIZE command</TITLE>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<BODY>

<h1>HH_UNINITIALIZE command</h1>

<p>This command is called to properly shut down HTML Help. This function should be the last help command the application calls. <b>HH_UNINITIALIZE</b> should not be called during DLL process detach, but during the normal application shutdown process.
</p>

<br>
<table border=1 cellpadding=3 cellspacing=0 width=100%>
<TR VALIGN="top">
<TH><I>pszFile</I></TH>
<TH><I>dwData</I></TH>
</TR>

<TR VALIGN="top">
<TD>
Must be NULL.
</TD>
<TD>
Specifies a cookie. This is the cookie returned by <a href="cmd_hh_initialize.htm">HH_INITIALIZE</a>.  
</TD>
</TR>
</TABLE>
<BR>

<H2>Example</H2>
<p><pre><code>
<br>HtmlHelp(
<br>         NULL, 
<br>         NULL, 
<br>         HH_UNINITIALIZE, 
<br>         (DWORD)dwCookie) ; // Pass in cookie.
</pre></code></p>


<H2>Comments</H2>
<ul>
<li>Call <b>HH_INITIALIZE</b> before calling any other command and call <b>HH_UNINITIALIZE</b> only when your application ends. You should call these commands once during the life of your application.</li>

<li>Do not call <b>HH_UNINITIALIZE</b> before or at process detach.</li>
</ul>

<H2>See also</H2>
<p><a href="cmd_hh_initialize.htm">HH_INITIALIZE</a></p>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ov_about_htmlhelp_commands.htm"><img src="home.gif" width=20 height=18 alt="link to overview topic" border="0"></a>
</td>
<td><a href="ov_about_htmlhelp_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>

<br>
<!--start keywords--->

<!--end keywords--->


</BODY>
</HTML>
